package com.fgi.springframework.context;

import com.fgi.springframework.beans.BeansException;

/**
 * SPI interface to be implemented by most if not all application contexts.
 * Provides facilities to configure an application context in addition
 * to the application context client methods in the
 * {@link com.fgi.springframework.context.ApplicationContext} interface.
 *
 * @author HanXu
 * @date 2022/11/24
 * TODO 继承顶层的 上下文接口 并添加了一个 void refresh() 方法
 *
 * TODO 接口定义规则,契约... 实现类实现具体操作
 **/
public interface ConfigurableApplicationContext extends ApplicationContext {

    /**
     * 刷新容器
     *
     * @throws BeansException
     */
    void refresh() throws BeansException;

}
